package com.xja.mapper;


import com.xja.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RolesMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<Role> selectRolesByAdmin(Integer aId);

    List<Role> selectRoles();

    int deleteRolesByAid(Integer aid);

    void insertRoles(@Param("role") Integer role, @Param("aid") Integer aid);
}